home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / C and C++ / Libraries / GUSI / GUSICfg.c < prev    next >
Encoding:
Text File  |  1993-06-08  |  962 b   |  45 lines  |  [TEXT/MPS ]

  1. /*********************************************************************
  2. Project    :    GUSI                -    Grand Unified Socket Interface
  3. File        :    GUSICfg.c        -    List of socket types we want
  4. Author    :    Matthias Neeracher
  5. Started    :    07Feb93                                Language    :    MPW C/C++
  6. Modified    :    07Feb93    MN    
  7. Last        :    07Feb93
  8. *********************************************************************/
  9.  
  10. void GUSIwithUnixSockets();
  11. void GUSIwithAppleTalkSockets();
  12. void GUSIwithInternetSockets();
  13. void GUSIwithPPCSockets();
  14. void GUSIwithPAPSockets();
  15.  
  16. #ifdef GUSI_Everything
  17. #define GUSI_Appletalk
  18. #define GUSI_Internet
  19. #define GUSI_PPC
  20. #define GUSI_PAP
  21. #define GUSI_Unix
  22. #endif
  23.  
  24. #pragma force_active on
  25.  
  26. typedef void (*CfgProc)();
  27.  
  28. static void cfg() {
  29. #ifdef GUSI_Appletalk
  30.     GUSIwithAppleTalkSockets();
  31. #endif
  32. #ifdef GUSI_Internet
  33.     GUSIwithInternetSockets();
  34. #endif
  35. #ifdef GUSI_PPC
  36.     GUSIwithPPCSockets();
  37. #endif
  38. #ifdef GUSI_PAP
  39.     GUSIwithPAPSockets();
  40. #endif
  41. #ifdef GUSI_Unix
  42.     GUSIwithUnixSockets();
  43. #endif
  44. }
  45.